import { Injectable } from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { BaseService } from 'src/common/mongodb/BaseService';
import { Power, PowerDocument } from './entities/power.entity';
import { Model } from 'mongoose';

@Injectable()
export class PowerService extends BaseService<PowerDocument> {
  constructor(
    @InjectModel(Power.name)
    private powerModel: Model<PowerDocument>,
  ) {
    super(powerModel, ['menu']);
  }
}
